// use-post-store.ts
import {create} from 'zustand'
import {User} from ".prisma/client";

interface usersState {
    users: User[] | null;
    setUsers: (users: User[] | null) => void
}

// 状态管理, 可以在任何地方访问
export const useUsersStore = create<usersState>((set) => ({
    users: null,
    setUsers: (users) => set({users}),
}))

